﻿<Window x:Class="DaphneControls.PDNTagAddForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ignore="http://www.ignore.com"
        mc:Ignorable="d ignore"
        Width="300"
        Height="300"
        Title="Create a new PDN Tag"
        WindowStyle="ToolWindow"   
        WindowStartupLocation="Manual"
        Left="{Binding Path=PositionX}"
        Top="{Binding Path=PositionY}"
        >
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />            
        </Grid.RowDefinitions>
        <ListBox x:Name="uxPDNTagList" Grid.Row="0"  ItemsSource="{Binding Path=NewPDNTags}" 
                 SelectedItem="{Binding Path=CurrentPDNTag, Mode=TwoWay}" />
        <StackPanel Grid.Row="1" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button Margin="3" Width="100" Height="30" Command="{Binding Path=SelectCommand}"
                      >Select</Button>
            <Button Margin="3" Width="100" Height="30" Command="{Binding Path=CancelCommand}">Cancel</Button>            
        </StackPanel>              
    </Grid>
</Window>
